

//TODO import com.unipay.spring.aop.annotation.Calculator;  ---------------cnm-------------
import com.unipay.spring.aop.xml.Calculator;
import com.unipay.spring.aop.xml.CalculatorImpl;
import org.junit.Test;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @BelongsProject: SSM
 * @Author: cmy
 * @CreateTime: 2023-01-17  16:05
 * @Description: TODO
 */

public class AopXml {

    @Test
    public void xmlAOP(){
        ClassPathXmlApplicationContext ioc = new ClassPathXmlApplicationContext("aop-xml.xml");
        Calculator calculator = ioc.getBean(Calculator.class);
        calculator.add(1, 2);
    }
}
